package com.ibigcat.module.mdm.controller.admin.coderule.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 编码规则配置新增/修改 Request VO")
@Data
public class CodeRuleSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "25504")
    private Long id;

    @Schema(description = "编码名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "编码名称不能为空")
    private String nodeName;

    @Schema(description = "编码标识", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "编码标识不能为空")
    private String nodeCode;

    @Schema(description = "编码规则", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "编码规则不能为空")
    private String nodeRule;

    @Schema(description = "来源", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "来源不能为空")
    private String source;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
    @NotEmpty(message = "备注不能为空")
    private String remark;

}